package crackerx.game.graphics;

import java.io.IOException;

import android.content.res.AssetManager;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
/**
 * the in game textures
 * MUST CREATE ONE OF THIS CLASS BEFORE YOU CAN USE ANY OF THE TEXTURES
 */
public class GameBitMaps {
	//TODO init this
	/**the default background of the worlds ground*/
	public static Bitmap background;
	/**letter for putting on black buttons*/
	public static Bitmap purple_text;
	/**black button*/
	public static Bitmap one_letter_button;
	/**black button*/
	public static Bitmap four_letter_button;
	/**black button*/
	public static Bitmap six_letter_button;

	
	
	/**the default player texture*/
	public static Bitmap player;
	/**the default player arms texture*/
	public static Bitmap player_arms;
	/**the default player arms for holding a pistol*/
	public static Bitmap player_arms_pistol;
	
	/**the bullet texture*/
	public static Bitmap bullet;
	
	/**init
	 * @throws IOException */
	public GameBitMaps(AssetManager assets) throws IOException{
		Bitmap temp;
		temp = BitmapFactory.decodeStream(assets.open("images/GUI/backgrounds/grass.png"));
		background = temp;
		temp = BitmapFactory.decodeStream(assets.open("data/GUI/purple_text.png"));
		purple_text = temp;
		temp = BitmapFactory.decodeStream(assets.open("images/GUI/buttons/1_letter_button.png"));
		one_letter_button = temp;
		temp = BitmapFactory.decodeStream(assets.open("images/GUI/buttons/4_letter_button.png"));
		four_letter_button = temp;
		temp = BitmapFactory.decodeStream(assets.open("images/GUI/buttons/6_letter_button.png"));
		six_letter_button = temp;
		temp = BitmapFactory.decodeStream(assets.open("images/player/base_player.png"));
		player = temp;
		temp = BitmapFactory.decodeStream(assets.open("images/player/player_arms.png"));
		player_arms = temp;
		temp = BitmapFactory.decodeStream(assets.open("images/player/player_arms_pistol.png"));
		player_arms_pistol = temp;
		temp = BitmapFactory.decodeStream(assets.open("images/weapons/projectiles/bullet.png"));
		bullet = temp;
	}
}
